package com.erp.erp_entitys.money.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 资金管理-付款-退款表(PaymentRefund)实体类
 *
 * @author lst
 * @since 2021-04-05 09:25:05
 */
public class PaymentRefundEntity implements Serializable {
    private static final long serialVersionUID = -19801584532930430L;
    /**
    * 主键id
    */
    private Integer id;
    /**
    * 付款主表id
    */
    private Integer parentId;
    /**
    * 付款明细id
    */
    private Integer detailId;
    /**
    * 外销合同号
    */
    private String contractNo;
    /**
    * 单据编号
    */
    private String invoiceNumber;
    /**
    * 采购单号
    */
    private String purchaseNo;
    /**
    * 退款金额
    */
    private BigDecimal amount;
    /**
    * 备注
    */
    private String memo;
    /**
    * 创建人名称
    */
    private String operationName;
    /**
    * 创建人编码
    */
    private String operationCode;
    /**
    * 创建时间
    */
    private Date createDate;
    /**
    * 修改时间
    */
    private Date modifyTime;
    /**
    * 是否有效(0:无效 1:有效)
    */
    private Integer valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public String getPurchaseNo() {
        return purchaseNo;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }


    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }

    public String getOperationCode() {
        return operationCode;
    }

    public void setOperationCode(String operationCode) {
        this.operationCode = operationCode;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }


    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("PaymentRefundEntity").append('[')
                .append("id=")
                .append(id)
                .append(",parentId=")
                .append(parentId)
                .append(",detailId=")
                .append(detailId)
                .append(",contractNo=")
                .append(contractNo)
                .append(",invoiceNumber=")
                .append(invoiceNumber)
                .append(",purchaseNo=")
                .append(purchaseNo)
                .append(",amount=")
                .append(amount)
                .append(",memo=")
                .append(memo)
                .append(",operationName=")
                .append(operationName)
                .append(",operationCode=")
                .append(operationCode)
                .append(",createDate=")
                .append(createDate)
                .append(",modifyTime=")
                .append(modifyTime)
                .append(",valid=")
                .append(valid)
                .append(']');
        return sb.toString();
    }
}